
namespace JTZY.Model.Goods.Dto
{
    /// <summary>
    /// 货品表查询对象
    /// </summary>
    public class CorecmsproductsQueryDto : PagerInfo 
    {
        public string Sn { get; set; }
    }

    /// <summary>
    /// 货品表输入输出对象
    /// </summary>
    public class CorecmsproductsDto
    {
        [Required(ErrorMessage = "是否默认货品不能为空")]
        public bool IsDefalut { get; set; }

        public string Images { get; set; }

        [Required(ErrorMessage = "是否删除不能为空")]
        public bool IsDel { get; set; }

        [Required(ErrorMessage = "积分可抵扣金额不能为空")]
        public decimal PointsDeduction { get; set; }

        [Required(ErrorMessage = "赠送积分不能为空")]
        public int Points { get; set; }

        public string SkuName { get; set; }

        [Required(ErrorMessage = "货品序列不能为空")]
        public int Id { get; set; }

        [Required(ErrorMessage = "商品序列不能为空")]
        public int GoodsId { get; set; }

        public string Barcode { get; set; }

        public string Sn { get; set; }

        [Required(ErrorMessage = "货品价格不能为空")]
        public decimal Price { get; set; }

        [Required(ErrorMessage = "货品成本价不能为空")]
        public decimal Costprice { get; set; }

        [Required(ErrorMessage = "货品市场价不能为空")]
        public decimal Mktprice { get; set; }

        [Required(ErrorMessage = "是否上架不能为空")]
        public bool Marketable { get; set; }

        [Required(ErrorMessage = "重量(千克)不能为空")]
        public decimal Weight { get; set; }

        [Required(ErrorMessage = "库存不能为空")]
        public int Stock { get; set; }

        [Required(ErrorMessage = "冻结库存不能为空")]
        public int FreezeStock { get; set; }

        public string SpesDesc { get; set; }



        [ExcelColumn(Name = "是否默认货品")]
        public string IsDefalutLabel { get; set; }

        #region 关联字段
        [SugarColumn(IsIgnore = true)]
        public string Image { get; set; }

        [SugarColumn(IsIgnore = true)]
        public string SkuImage { get; set; }
        #endregion

    }
}